import {_decorator, Component, Node} from 'cc';
import {GameManager} from "db://assets/script/modules/GameManager";

const {ccclass, property} = _decorator;

@ccclass('GameController')
export class GameController extends Component {

    @property({tooltip: '玩家节点', type: Node})
    playerNode: Node

    @property({tooltip: '玩家相机', type: Node})
    gameCameraNode: Node

    start() {
        GameManager.setPlayerNode(this.playerNode)
        GameManager.setGameCameraNode(this.gameCameraNode)
    }

    update() {
    }

}
